import Matter from "src/matter/entities/matter.entity";
import { Column, CreateDateColumn, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";

@Entity()
export class MatterSubmit {
  @PrimaryGeneratedColumn("uuid")
  id: string;

  @Column({
    default: null
  })
  status: string;

  @Column()
  matterId: string;

  @ManyToOne(() => Matter)
  matter: Matter

  @CreateDateColumn()
  createdDate: Date;

  @UpdateDateColumn()
  updatedDate: Date;
}
